import fetch from 'common/src/utils/fetch';
import baseUrl from './env';
// 学校认定课程时间设置列表
function getSchoolList(data) {
  return fetch({
      url: `${baseUrl}/schoolAffirmTime/getSchoolTimeList`,
      method: 'post',
      data
  });
}
// 学校认定课程时间设置新增
function schoolListAdd(data) {
  return fetch({
      url: `${baseUrl}/schoolAffirmTime/addSchoolTime`,
      method: 'post',
      data
  });
}
// 根据id查看学校认定工作时间设置
function schoolListById(id) {
  return fetch({
      url: `${baseUrl}/schoolAffirmTime/getSchoolTimeById?id=${id}`,
      method: 'get'
  });
}
// 学校认定课程时间设置编辑
function schoolListEdit(data) {
  return fetch({
      url: `${baseUrl}/schoolAffirmTime/editSchoolTime`,
      method: 'post',
      data
  });
}
// 学校认定课程时间设置删除
function schoolListDelete(data) {
  return fetch({
      url: `${baseUrl}/schoolAffirmTime/deleteSchoolTime`,
      method: 'post',
      data
  });
}
const schoolCourseTimeSetApi = {
  getSchoolList,
  schoolListAdd,
  schoolListEdit,
  schoolListDelete,
  schoolListById
}
export default schoolCourseTimeSetApi;
